var e = require;
var t = module;
var n = exports;
var i =
    (this && this.__spreadArrays) ||
    function () {
        for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
        for (var o = Array(e), i = 0, t = 0; t < n; t++)
            for (var r = arguments[t], a = 0, s = r.length; a < s; a++, i++) o[i] = r[a];
        return o;
    };
Object.defineProperty(n, "__esModule", {value: !0}), e("common");
var r = e("node-locker"),
    a = e("sound");
e("user-data"),
    (function () {
        console.log("Global script initd"),
            (cc.Button.prototype.touchEndClone = cc.Button.prototype._onTouchEnded),
            (cc.Button.prototype.clickSoundEffect = !0),
            (cc.Button.prototype._onTouchEnded = function (e) {
                this.interactable &&
                    this.enabledInHierarchy &&
                    this._pressed &&
                    this.clickSoundEffect &&
                    a.sound.play(a.Sound.CLICK),
                    this.touchEndClone(e);
            }),
            (cc.macro.ENABLE_MULTI_TOUCH = !0),
            (cc.macro.ENABLE_WEBGL_ANTIALIAS = !0);
        var o = cc.Node.prototype._hitTest;
        cc.Node.prototype._hitTest = function (e) {
            for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
            if (!r.isNodeLocked(this)) return o.call.apply(o, i([this, e], t));
        };
    })();
